package com.warehouse_management.purchase.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("C_PRODUCT")
public class Product {

  private String productId;
  private String productModel;
  private String productPrice;
  private String productStatus;
  private String productUnit;
  @JsonFormat(pattern = "yyyy-MM-dd")
  private Date createTime;
  private String createId;
  private String typeId;
  private Type type;
  private String firmId;

}
